import { request } from '@/utils'
function loginApi(data: any) {
  return request({
    url: 'nt/login',
    method: 'POST',
    data,
  })
}
function registerApi(data: any) {
  return request({
    url: 'nt/register',
    method: 'POST',
    data,
  })
}
function editPasswordApi(data: any) {
  return request({
    url: 'nt/updatePassword',
    method: 'POST',
    data,
  })
}
function userInfoApi() {
  return request({
    url: 'yt/userinfo',
    method: 'GET',
  })
}
export default { loginApi, registerApi, editPasswordApi, userInfoApi }
